package com.cskaoyan.yesterday;

public class Demo1 {

    public static void main(String[] args) {
        Son son = new Son();
        son.accessFatherPrivate();  //100
    }
}

class Father {

    private int a = 100;

    public void testPrivate() {
        System.out.println(a);
    }

}

class Son extends Father {

    public void accessFatherPrivate() {
        testPrivate();
        //System.out.println(a);
    }

}